package cn.nawang.ebeim.api.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.nawang.ebeim.api.domain.StorageVersionTree;
import cn.nawang.ebeim.api.repository.StorageVersionTreeRepository;
import cn.nawang.ebeim.api.service.StorageVersionTreeService;

/**
 * @ClassName: StorageVersionTreeServiceImpl
 * @Description: TODO
 * @author fanyb
 * @date Aug 26, 2015 2:50:21 PM
 * @version v1.0
 */
@Service("storageVersionTreeService")
public class StorageVersionTreeServiceImpl implements StorageVersionTreeService {

  @Autowired
  private StorageVersionTreeRepository storageVersionTreeRepository;


  @Override
  public boolean add(StorageVersionTree storageVersionTree) {
    try {
      storageVersionTreeRepository.save(storageVersionTree);
      return true;
    } catch (Exception e) {
      e.printStackTrace();
    }
    return false;
  }

}
